Extracts only the cells on the external border. Other cells are
assigned nodata
. Border cell is the one that has at least a
nodata
value in the neighbouring 8 cells.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(grid_real), | intent(in) | :: | grid | |||
type(grid_real) | :: | border | ||||
logical, | intent(in), | optional | :: | cardinal |
Extracts only the cells on the external border. Other cells are
assigned nodata
. Border cell is the one that has at least a
nodata
value in the neighbouring 8 cells. If cardinal
is passed
the routine checks only the four cells in the cardinal direction.
This option is used to obtain border without duplicates. Default is
check all the cells.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(grid_integer), | intent(in) | :: | grid | |||
type(grid_integer), | intent(out) | :: | border | |||
logical, | intent(in), | optional | :: | cardinal |